function addGuestbookApi(guestbook) {
    return axios.post("/guestbook", guestbook);
}

function guestbookPageApi(page, pageSize, name) {
    return axios.get('/guestbook/page', {
        params: {
            page: page,
            pageSize: pageSize,
            name: name
        }
    })
}

function userDelGuestbookApi(guestbook) {
    return axios.delete("/guestbook/userDel",  {
        data: guestbook
    });
}

function getGuestbookByIdApi(id){
    return axios.get(`/guestbook/${id}`)
}

function updateGuestbookApi(data){
    return axios.put('/guestbook', data)
}

function delGuestbookApi(guestbook) {
    return axios.delete("/guestbook",  {
        data: guestbook
    });
}
